package com.example.springstudy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.Set;

@TableName("user")
@Data
public class User {
    @TableId
    private Long id;
    private String name;
    private String email;
    private String nickName;

    private String password;
    private String phone;
    private String idcard;
    private String avatar;
    private String birth;
    private int sex;
    private double height;
    private double weight;
    private int age;
    private int isDeleted;

    private Date createTime;
    private Date updateTime;
    private Long createBy;
    private Long updateBy;

    private Integer deptId;

    private String address;
    private String region;

    @TableField(exist = false)
    private int dataScope;

    @TableField(exist = false)
    private Set<String> roles;

    @TableField(exist = false)
    private Set<String> perms;

    @TableField(exist = false)
    private Set<Integer> roleIds;
}
